<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" cntent="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="">
	<meta name="author" content="">
	<title>登录</title>
	<!-- Bootstrap core CSS -->
	<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
	<!-- Custom styles for this template -->
	<link th:href="@{/css/signin.css}" rel="stylesheet">

	<style type="text/css">
		body{
			margin: 0px auto;
			width:1550px;
			min-width:1024px;
			max-width:100%;
			height:100%;
			/*background-color:white;*/
			background-image: url(/image/pictures/6.jpg);
		}
		a.right {
			font-size: 22px;
		}
	</style>
</head>

<body class="text-center">

<div  class="container">
<form class="form-signin" th:action="@{/login}">
	<img class="mb-4" th:src="@{/image/img/bootstrap-solid.svg}" alt="" width="72" height="72">

	<h1 class="h3 mb-3 font-weight-normal">请登录</h1>

	<p style="color: #ff0000" th:text="${{msg}}"></p>


	<input type="text" name="username" class="form-control" placeholder="账号" required="" autofocus="">
	<input type="password" name="password" class="form-control" placeholder="密码" required="">

	<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
<!--	<button class="btn btn-lg btn-primary btn-block" type="submit" th:action="@{/reg}" method="get">注册</button>-->

</form>
<form class="form-signin"  th:action="@{/reg}" method="get" >
	<a href="http://localhost:8086/reg" class="right"  >注册</a>
</form>

</div>
</body>

</html>